#ifndef LOGHANDLE_H
#define LOGHANDLE_H

#include <QObject>
class QPlainTextEdit;

class LogHandle {
public:
    explicit LogHandle(QPlainTextEdit *p_text_edit = nullptr);
    ~LogHandle();

    void print(QString data);

    LogHandle &operator<<(const QString data);

private:
    QString t_data;
    QPlainTextEdit *p_tedit;
};

#endif // LOGHANDLE_H
